<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"><head
profile="http://gmpg.org/xfn/11"><link
rel='stylesheet' href='http://www.html-form-guide.com/wp-content/plugins/wp-minify/min/?f=wp-content/themes/thesis_182/style.css,wp-content/themes/thesis_182/custom/layout.css,wp-content/themes/thesis_182/custom/custom.css,wp-content/plugins/sociable/sociable.css,wp-content/plugins/highslide-4-wordpress-reloaded/highslide.css&amp;m=1323276472' type='text/css' media='screen' /> <script type='text/javascript' src='http://www.html-form-guide.com/wp-content/plugins/wp-minify/min/?f=wp-includes/js/tinymce/tiny_mce.js,wp-includes/js/tinymce/langs/wp-langs-en.js,wp-content/plugins/tinymcecomments/comment-reply.dev.js,wp-content/plugins/highslide-4-wordpress-reloaded/hs-custom-min.js&amp;m=1321421978'></script> <meta
http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Making a login form using PHP</title><meta
name="robots" content="noodp, noydir" /><meta
name="description" content="Shows how to create a membership based web site using PHP. This is the second step where you create the login form." /><meta
name="keywords" content="php login form" /> <!--[if lte IE 8]><link
rel="stylesheet" href="http://www.html-form-guide.com/wp-content/themes/thesis_182/lib/css/ie.css" type="text/css" media="screen, projection" /><![endif]--><link
rel="canonical" href="http://www.html-form-guide.com/php-form/php-login-form.html" /><link
rel="alternate" type="application/rss+xml" title="HTML Form Guide RSS Feed" href="http://feeds.feedburner.com/HtmlFormGuide" /><link
rel="pingback" href="http://www.html-form-guide.com/xmlrpc.php" /><link
rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.html-form-guide.com/xmlrpc.php?rsd" /><link
rel="shortcut icon" type="image/ico" href="favicon.ico"><link
rel="alternate" type="application/rss+xml" title="HTML Form Guide &raquo; Making a login form using PHP Comments Feed" href="http://www.html-form-guide.com/php-form/php-login-form.html/feed" /><style type="text/css" >#subscribe-widget-div { text-align: left; margin-top:5px; }</style> <script type="text/javascript">/*<![CDATA[*//*  */
      function brstonewline(element_id, html, body) {
	      html = html.replace(/<br\s*\/>/gi, "\n");
	      return html;
	   }
	   function insertHTML(html) {
	      tinyMCE.execCommand("mceInsertContent",false, html);
	   }
      tinyMCEPreInit = {
	      base : "http://www.html-form-guide.com/wp-includes/js/tinymce",
	      suffix : "",
	      query : "ver=20081129",
	      mceInit : {mode:"exact"	,elements:"comment"	,theme:"advanced"	,theme_advanced_buttons1:"bold,italic,underline,|,strikethrough,|,bullist,numlist,|,undo,redo,|,link,unlink,|,removeformat|,charmap,code,forecolor,blockquote,spellchecker"	,theme_advanced_buttons2:""	,theme_advanced_buttons3:""	,theme_advanced_toolbar_location:"top"	,theme_advanced_toolbar_align:"left"	,theme_advanced_statusbar_location:"bottom"	,theme_advanced_resizing:"true"	,theme_advanced_resize_horizontal:""	,theme_advanced_disable:""	,force_p_newlines:""	,force_br_newlines:"1"	,forced_root_block:"p"	,gecko_spellcheck:"1"	,skin:"default"	,content_css:"http://www.html-form-guide.com/wp-includes/js/tinymce/plugins/wordpress/wordpress.css"	,directionality:"ltr"	,save_callback:"brstonewline"	,entity_encoding:"raw"	,plugins:""	,language:"en"	},
	      go : function() {
		      var t = this, sl = tinymce.ScriptLoader, ln = t.mceInit.language, th = t.mceInit.theme, pl = t.mceInit.plugins;
		      sl.markDone(t.base + '/langs/' + ln + '.js');
		      sl.markDone(t.base + '/themes/' + th + '/langs/' + ln + '.js');
		      sl.markDone(t.base + '/themes/' + th + '/langs/' + ln + '_dlg.js');
		      tinymce.each(pl.split(','), function(n) {
			      if (n && n.charAt(0) != '-') {
				      sl.markDone(t.base + '/plugins/' + n + '/langs/' + ln + '.js');
				      sl.markDone(t.base + '/plugins/' + n + '/langs/' + ln + '_dlg.js');
			      }
		      });
	      },
	      load_ext : function(url,lang) {
		      var sl = tinymce.ScriptLoader;
		      sl.markDone(url + '/langs/' + lang + '.js');
		      sl.markDone(url + '/langs/' + lang + '_dlg.js');
	      }
      };
      var subBtn = document.getElementById("submit");
	   if (subBtn != null) {
	      subBtn.onclick=function() {
	         var inst = tinyMCE.getInstanceById("comment");
	         document.getElementById("comment").value = inst.getContent();
	         document.getElementById("commentform").submit();
	         return false;
	      }
	   }
	   tinyMCEPreInit.go();
      tinyMCE.init(tinyMCEPreInit.mceInit);
      /*  *//*]]>*/</script> </head><body
class="custom"><div
id="container"><div
id="page"><div
id="header"><p
id="logo"><a
href="http://www.html-form-guide.com">HTML Form Guide</a></p><p
id="tagline">All about web forms!</p></div><ul
class="menu"><li
class="tab tab-home"><a
href="http://www.html-form-guide.com">Home</a></li><li
class="tab tab-1"><a
href="http://www.html-form-guide.com/about" title="About html-form-guide.com">About</a></li></ul><div
id="content_box"><div
id="content" class="hfeed"><div
id="yoastbreadcrumb">You are here: <a
href="http://www.html-form-guide.com/">Home</a> &raquo; <a
href="http://www.html-form-guide.com/all-posts">All Posts</a> &raquo; <a
href="http://www.html-form-guide.com/category/php-form">PHP Form</a> &raquo; <strong>Making a login form using PHP</strong></div><div
class="post-396 post type-post hentry category-php-form tag-download tag-php tag-php-login-form post_box top" id="post-396"><div
class="headline_area"><h1 class="entry-title">Making a login form using PHP</h1><p
class="headline_meta">in <span><a
href="http://www.html-form-guide.com/category/php-form" title="View all posts in PHP Form" rel="category tag">PHP Form</a></span></p></div><div
class="format_text entry-content"><p>This is in continuation of the tutorial on making a membership based web site. Please see the previous page <a
href="http://www.html-form-guide.com/php-form/php-registration-form.html">PHP registration form</a> for more details.<br
/> <span
id="more-396"></span></p><h2>Download the code</h2><p>You can download the whole source code for the registration/login system from the link below:<br
/> <a
href='http://www.html-form-guide.com/files/php-form/RegistrationForm.zip'>RegistrationForm.zip</a><br
/> The ReadMe.txt file in the download contains detailed instructions.</p><h2>The login form</h2><p><img
src="http://www.html-form-guide.com/wp-content/uploads/2011/03/php-login-form.png" alt="PHP login form" title="PHP login form" width="237" height="204" class="alignnone size-full wp-image-719" /></p><p>Here is the HTML code for the login form.</p><div><pre class="brush: xml;">
&lt;form id='login' action='login.php' method='post' accept-charset='UTF-8'&gt;
&lt;fieldset &gt;
&lt;legend&gt;Login&lt;/legend&gt;
&lt;input type='hidden' name='submitted' id='submitted' value='1'/&gt;
&lt;label for='username' &gt;UserName*:&lt;/label&gt;
&lt;input type='text' name='username' id='username'  maxlength=&quot;50&quot; /&gt;
&lt;label for='password' &gt;Password*:&lt;/label&gt;
&lt;input type='password' name='password' id='password' maxlength=&quot;50&quot; /&gt;
&lt;input type='submit' name='Submit' value='Submit' /&gt;
&lt;/fieldset&gt;
&lt;/form&gt;
</pre></div><h2>Logging in</h2><p>We verify the username  and the password we received and then look up those in the database. Here is the code:</p><div><pre class="brush: php;">
function Login()
{
    if(empty($_POST['username']))
    {
        $this-&gt;HandleError(&quot;UserName is empty!&quot;);
        return false;
    }
    if(empty($_POST['password']))
    {
        $this-&gt;HandleError(&quot;Password is empty!&quot;);
        return false;
    }
    $username = trim($_POST['username']);
    $password = trim($_POST['password']);
    if(!$this-&gt;CheckLoginInDB($username,$password))
    {
        return false;
    }
    session_start();
    $_SESSION[$this-&gt;GetLoginSessionVar()] = $username;
    return true;
}
</pre></div><p>In order to identify a user as authorized, we are going to check the database for his combination of username/password, and if a correct combination was entered, we set a session variable.</p><p>Here is the code to look up the username and password.</p><div><pre class="brush: php;">
function CheckLoginInDB($username,$password)
{
    if(!$this-&gt;DBLogin())
    {
        $this-&gt;HandleError(&quot;Database login failed!&quot;);
        return false;
    }
    $username = $this-&gt;SanitizeForSQL($username);
    $pwdmd5 = md5($password);
    $qry = &quot;Select name, email from $this-&gt;tablename &quot;.
        &quot; where username='$username' and password='$pwdmd5' &quot;.
        &quot; and confirmcode='y'&quot;;
    $result = mysql_query($qry,$this-&gt;connection);
    if(!$result || mysql_num_rows($result) &lt;= 0)
    {
        $this-&gt;HandleError(&quot;Error logging in. &quot;.
            &quot;The username or password does not match&quot;);
        return false;
    }
    return true;
}
</pre></div><p>Please notice that we must compare the value for the password from the database with the MD5 encrypted value of the password entered by the user. If the query returns a result, we set an &#034;authorized&#034; session variable, and then redirect to the protected content. If there are no rows with the entered data, we just redirect the user to the login form again.</p><h2>Access controlled pages</h2><p>For those pages that can only be accessed by registered members, we need to put a check on the top of the page.<br
/> Notice that we are setting an &#034;authorized&#034;  session variable in the login code above. On top of pages we want to protect, we check for that session variable. If user is authorized, we show him the protected content, otherwise we direct him to the login form.</p><p>Include this sample piece of code on top of your protected pages:</p><div><pre class="brush: php;">
&lt;?PHP
require_once(&quot;./include/membersite_config.php&quot;);
if(!$fgmembersite-&gt;CheckLogin())
{
    $fgmembersite-&gt;RedirectToURL(&quot;login.php&quot;);
    exit;
}
?&gt;
</pre></div><p>See the file: <em>access-controlled.php</em> in the downloaded code for an example.</p><p>Here is the CheckLogin() function code.</p><div><pre class="brush: php;">
function CheckLogin()
{
     session_start();
     $sessionvar = $this-&gt;GetLoginSessionVar();
     if(empty($_SESSION[$sessionvar]))
     {
        return false;
     }
     return true;
}
</pre></div><p>These are the basics of creating a membership site. Now that you have the basic knowledge, you can experiment with it and add new features, such as a &#034;Forgot password&#034; page to allow the user to retrieve or change his password if he forgets it.</p><h2>Updates</h2><p><strong>9th Jan 2012</strong><br
/> Reset Password/Change Password features are added.<br
/> The code is now <a
href="https://github.com/simfatic/RegistrationForm">shared at GitHub</a>.</p><h2>License</h2><p><a
href="http://www.gnu.org/copyleft/lesser.html"><img
src="http://www.gnu.org/graphics/lgplv3-147x51.png" border="0" alt="" width="147" height="51" /></a><br
/> The code is shared under LGPL license. You can freely use it on commercial or non-commercial websites.</p><div
class="sociable"><div
class="sociable_tagline"> <strong>Share and Enjoy:</strong></div><ul><li
class="sociablefirst"><a
rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.html-form-guide.com%2Fphp-form%2Fphp-login-form.html&amp;partner=sociable" title="Print"><img
src="http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.gif" title="Print" alt="Print" style="width: 16px; height: 16px; background: transparent url(http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.png) no-repeat; background-position:-343px -37px" class="sociable-hovers" /></a></li><li><a
rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.html-form-guide.com%2Fphp-form%2Fphp-login-form.html&amp;title=Making%20a%20login%20form%20using%20PHP&amp;bodytext=This%20is%20in%20continuation%20of%20the%20tutorial%20on%20making%20a%20membership%20based%20web%20site.%20Please%20see%20the%20previous%20page%C2%A0PHP%20registration%20form%20for%20more%20details.%0D%0A%0D%0ADownload%20the%20code%0D%0AYou%20can%20download%20the%20whole%20source%20code%20for%20the%20registration%2Flogin%20system%20from%20t" title="Digg"><img
src="http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.gif" title="Digg" alt="Digg" style="width: 16px; height: 16px; background: transparent url(http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.png) no-repeat; background-position:-235px -1px" class="sociable-hovers" /></a></li><li><a
rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.html-form-guide.com%2Fphp-form%2Fphp-login-form.html" title="Sphinn"><img
src="http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.gif" title="Sphinn" alt="Sphinn" style="width: 16px; height: 16px; background: transparent url(http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.png) no-repeat; background-position:-199px -55px" class="sociable-hovers" /></a></li><li><a
rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Fwww.html-form-guide.com%2Fphp-form%2Fphp-login-form.html&amp;title=Making%20a%20login%20form%20using%20PHP&amp;notes=This%20is%20in%20continuation%20of%20the%20tutorial%20on%20making%20a%20membership%20based%20web%20site.%20Please%20see%20the%20previous%20page%C2%A0PHP%20registration%20form%20for%20more%20details.%0D%0A%0D%0ADownload%20the%20code%0D%0AYou%20can%20download%20the%20whole%20source%20code%20for%20the%20registration%2Flogin%20system%20from%20t" title="del.icio.us"><img
src="http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.gif" title="del.icio.us" alt="del.icio.us" style="width: 16px; height: 16px; background: transparent url(http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.png) no-repeat; background-position:-199px -1px" class="sociable-hovers" /></a></li><li><a
rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.html-form-guide.com%2Fphp-form%2Fphp-login-form.html&amp;t=Making%20a%20login%20form%20using%20PHP" title="Facebook"><img
src="http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.gif" title="Facebook" alt="Facebook" style="width: 16px; height: 16px; background: transparent url(http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.png) no-repeat; background-position:-343px -1px" class="sociable-hovers" /></a></li><li><a
rel="nofollow"  href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.html-form-guide.com%2Fphp-form%2Fphp-login-form.html&amp;title=Making%20a%20login%20form%20using%20PHP" title="Mixx"><img
src="http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.gif" title="Mixx" alt="Mixx" style="width: 16px; height: 16px; background: transparent url(http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.png) no-repeat; background-position:-91px -37px" class="sociable-hovers" /></a></li><li><a
rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.html-form-guide.com%2Fphp-form%2Fphp-login-form.html&amp;title=Making%20a%20login%20form%20using%20PHP&amp;annotation=This%20is%20in%20continuation%20of%20the%20tutorial%20on%20making%20a%20membership%20based%20web%20site.%20Please%20see%20the%20previous%20page%C2%A0PHP%20registration%20form%20for%20more%20details.%0D%0A%0D%0ADownload%20the%20code%0D%0AYou%20can%20download%20the%20whole%20source%20code%20for%20the%20registration%2Flogin%20system%20from%20t" title="Google Bookmarks"><img
src="http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.gif" title="Google Bookmarks" alt="Google Bookmarks" style="width: 16px; height: 16px; background: transparent url(http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.png) no-repeat; background-position:-91px -19px" class="sociable-hovers" /></a></li><li
class="sociablelast"><a
href="http://blogplay.com" title="Blogplay"><img
src="http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.gif" title="Blogplay" alt="Blogplay" style="width: 16px; height: 16px; background: transparent url(http://www.html-form-guide.com/wp-content/plugins/sociable/images/services-sprite.png) no-repeat; background-position:-199px -73px" class="sociable-hovers" /></a></li></ul></div><p>Related posts:</p><ol><li><a
href='http://www.html-form-guide.com/php-form/php-registration-form.html' rel='bookmark' title='Permanent Link: Creating a registration form using PHP'>Creating a registration form using PHP</a></li></ol><p
class="post_tags">Tagged as: <a
href="http://www.html-form-guide.com/tag/download" rel="tag nofollow">download</a>, <a
href="http://www.html-form-guide.com/tag/php" rel="tag nofollow">PHP</a>, <a
href="http://www.html-form-guide.com/tag/php-login-form" rel="tag nofollow">php login form</a></p></div></div><div
id="comments"><div
id="comments_intro" class="comments_intro"><p><span
class="bracket">{</span> <span>104</span> comments&#8230; read them below or <a
href="#respond" rel="nofollow">add one</a> <span
class="bracket">}</span></p></div><div
id="comment_nav_1" class="prev_next"><p
class="previous"><a
href="http://www.html-form-guide.com/php-form/php-login-form.html/comment-page-3#comments" >&larr; Previous Comments</a></p></div><dl
id="comment_list"><dt
class="comment even thread-even depth-1" id="comment-25653"> <span
class="avatar"><a
href="http://mysoftoffice.blogspot.com" rel="nofollow"><img
alt='' src='http://0.gravatar.com/avatar/4a4f02ac925790147485c7cc6bbb3759?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></a></span> <span
class="comment_author"><a
href='http://mysoftoffice.blogspot.com' rel='external nofollow' class='url'>Anil</a></span> <span
class="comment_time"><a
href="#comment-25653" title="Permalink to this comment" rel="nofollow">January 1, 2012 at 3:50 pm</a></span></dt><dd
class="comment even thread-even depth-1"><div
class="format_text" id="comment-body-25653"><p>thanks for sharing this info&#8230;&#8230;..i read this and got lot&#8217;s more about login.</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=25653#respond' onclick='return addComment.moveForm("comment-body-25653", "25653", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-25769"> <span
class="avatar"><img
alt='' src='http://0.gravatar.com/avatar/c35dc0c1116173d22e353fd799ac0a2c?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">Frankie</span> <span
class="comment_time"><a
href="#comment-25769" title="Permalink to this comment" rel="nofollow">January 2, 2012 at 2:37 pm</a></span></dt><dd
class="comment odd alt thread-odd thread-alt depth-1 parent"><div
class="format_text" id="comment-body-25769"><p>Has anyone ever figured out the &#8220;Failed sending registration confirmation email.&#8221; problem?<br
/> I have the same issue.</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=25769#respond' onclick='return addComment.moveForm("comment-body-25769", "25769", "respond", "396")'>Reply</a></p></div><dl
class="children"><dt
class="comment even depth-2" id="comment-25900"> <span
class="avatar"><img
alt='' src='http://0.gravatar.com/avatar/c35dc0c1116173d22e353fd799ac0a2c?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">Frankie</span> <span
class="comment_time"><a
href="#comment-25900" title="Permalink to this comment" rel="nofollow">January 3, 2012 at 9:38 am</a></span></dt><dd
class="comment even depth-2"><div
class="format_text" id="comment-body-25900"><p>Fixed it! Changed server name on line 237 in the file ‘fg_membersite.php’<br
/> from: $host = $_SERVER['SERVER_NAME'];<br
/> to:     $host = $_SERVER['localhost'];</p><p>Great code, works perfectly now, except when new users clicks the confirmation link twice. Need to work on that unless someone has already fixed that.</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=25900#respond' onclick='return addComment.moveForm("comment-body-25900", "25900", "respond", "396")'>Reply</a></p></div></dd></dl></dd><dt
class="comment odd alt thread-even depth-1" id="comment-25878"> <span
class="avatar"><a
href="http://www.automationdiary.com" rel="nofollow"><img
alt='' src='http://1.gravatar.com/avatar/b7289fe957e03f117eea22c0d7da6769?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></a></span> <span
class="comment_author"><a
href='http://www.automationdiary.com' rel='external nofollow' class='url'>Matty</a></span> <span
class="comment_time"><a
href="#comment-25878" title="Permalink to this comment" rel="nofollow">January 3, 2012 at 7:48 am</a></span></dt><dd
class="comment odd alt thread-even depth-1"><div
class="format_text" id="comment-body-25878"><p>Nice tutorial..it&#8217;s help.</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=25878#respond' onclick='return addComment.moveForm("comment-body-25878", "25878", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment even thread-odd thread-alt depth-1" id="comment-26087"> <span
class="avatar"><img
alt='' src='http://0.gravatar.com/avatar/0b71e5f51a03f7794b1ccb0d68bf01c6?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">Rabi</span> <span
class="comment_time"><a
href="#comment-26087" title="Permalink to this comment" rel="nofollow">January 4, 2012 at 10:17 am</a></span></dt><dd
class="comment even thread-odd thread-alt depth-1"><div
class="format_text" id="comment-body-26087"><p>Dear All.<br
/> I am New to PHP.<br
/> I have created two Tables in a DB(Members &amp; DailySales)<br
/> I want to create a login page so that onle the loggedin member can see their data only from table DailySales.<br
/> and admin can see all the Members Sales<br
/> I did manage to create a Login page and its working , but when MemberX login , he can see all the Data of DailySales table.<br
/> Please help me in this simple project.<br
/> MemberX can see only X data and MemberY can see Y data and so on.<br
/> Admin can see all Data</p><p>Regards</p><p>Rabi</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=26087#respond' onclick='return addComment.moveForm("comment-body-26087", "26087", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment odd alt thread-even depth-1" id="comment-26734"> <span
class="avatar"><img
alt='' src='http://0.gravatar.com/avatar/ed209597539d03c4e01746027ca6a63e?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">Yoli</span> <span
class="comment_time"><a
href="#comment-26734" title="Permalink to this comment" rel="nofollow">January 7, 2012 at 4:02 pm</a></span></dt><dd
class="comment odd alt thread-even depth-1"><div
class="format_text" id="comment-body-26734"><p>Hello,</p><p>It&#8217;s very nice, thank you!<br
/> One question: How can I use it with http/https change?<br
/> So login page is: <a
href="https://secure.com/login.php" rel="nofollow">https://secure.com/login.php</a>, but product pages are like:<br
/> <a
href="http://product.com/access-controlled.php" rel="nofollow">http://product.com/access-controlled.php</a> on the same server?</p><p>Thanks in advance.  Yoli</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=26734#respond' onclick='return addComment.moveForm("comment-body-26734", "26734", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment even thread-odd thread-alt depth-1" id="comment-26767"> <span
class="avatar"><img
alt='' src='http://1.gravatar.com/avatar/dc7e1191d4df6b95100d488d6bac1cd8?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">Bruce</span> <span
class="comment_time"><a
href="#comment-26767" title="Permalink to this comment" rel="nofollow">January 7, 2012 at 7:18 pm</a></span></dt><dd
class="comment even thread-odd thread-alt depth-1"><div
class="format_text" id="comment-body-26767"><p>I get the following error:<br
/> Warning: mysql_connect() [function.mysql-connect]: Can&#8217;t connect to local MySQL server through socket &#8216;/var/lib/mysql/mysql.sock&#8217; (2) in /home/content/t/t/s/ttservices/html/webauthorsgroup/testpage/source/include/fg_membersite.php on line 513</p><p>Line 513 is this:        $this-&gt;connection = mysql_connect($this-&gt;db_host,$this-&gt;username,$this-&gt;pwd);</p><p>db_host is where I am confused  as I think it is my host: h41mysql5.secureserver.net, but this  is wrong too &#8211; can anyone help?</p><p>Thanks in advance,<br
/> Bruce</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=26767#respond' onclick='return addComment.moveForm("comment-body-26767", "26767", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment odd alt thread-even depth-1" id="comment-26880"> <span
class="avatar"><img
alt='' src='http://1.gravatar.com/avatar/dc7e1191d4df6b95100d488d6bac1cd8?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">Bruce</span> <span
class="comment_time"><a
href="#comment-26880" title="Permalink to this comment" rel="nofollow">January 8, 2012 at 2:42 pm</a></span></dt><dd
class="comment odd alt thread-even depth-1"><div
class="format_text" id="comment-body-26880"><p>ok, I figured it out by reinstalling all the files &#8211; NOTE TO EVERYONE WHO EXPERIENCE THE &#8220;ERROR ON LINE 513&#8243; MESSAGE:</p><p>ONLY edit the following file:<br
/> 1. Edit the file membersite_config.php in the includes folder and<br
/> update the configuration information (like your email address, Database login etc)</p><p>Do NOT touch any other file unless specified under the READ ME file included in the installation zip file.</p><p>-Bruce</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=26880#respond' onclick='return addComment.moveForm("comment-body-26880", "26880", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment even thread-odd thread-alt depth-1" id="comment-26958"> <span
class="avatar"><img
alt='' src='http://1.gravatar.com/avatar/18109b7ca6db0d851591b1f7a518a8db?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">Trevor</span> <span
class="comment_time"><a
href="#comment-26958" title="Permalink to this comment" rel="nofollow">January 8, 2012 at 9:55 pm</a></span></dt><dd
class="comment even thread-odd thread-alt depth-1"><div
class="format_text" id="comment-body-26958"><p>Hi. I was able to implement all the forms and the code is working properly. I even received the notifications emails as programmed. I noticed that once the users log in all of them are redirected to the same generic page. What I need is for each user logged in taken to their own user specific page and no one else have access to it. Is there a way to accomplish this fairly easily? Thanks in advance for any help and tutorials.</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=26958#respond' onclick='return addComment.moveForm("comment-body-26958", "26958", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment odd alt thread-even depth-1" id="comment-27341"> <span
class="avatar"><a
href="http://Accessingthehomepageafterloggingin" rel="nofollow"><img
alt='' src='http://1.gravatar.com/avatar/36ff52f3674ec64c39549ffa4a42f837?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></a></span> <span
class="comment_author"><a
href='http://Accessingthehomepageafterloggingin' rel='external nofollow' class='url'>palmspringsasian</a></span> <span
class="comment_time"><a
href="#comment-27341" title="Permalink to this comment" rel="nofollow">January 11, 2012 at 1:13 am</a></span></dt><dd
class="comment odd alt thread-even depth-1"><div
class="format_text" id="comment-body-27341"><p>Hi:</p><p>I need scripts to create a form or a page to enable a  user access the home page of a Web site after logging in.</p><p>Thank you very much in advance.</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=27341#respond' onclick='return addComment.moveForm("comment-body-27341", "27341", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment even thread-odd thread-alt depth-1" id="comment-27975"> <span
class="avatar"><img
alt='' src='http://0.gravatar.com/avatar/8d89c3087cc6cb98793ab7c0f5658c56?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">ily</span> <span
class="comment_time"><a
href="#comment-27975" title="Permalink to this comment" rel="nofollow">January 14, 2012 at 11:09 pm</a></span></dt><dd
class="comment even thread-odd thread-alt depth-1"><div
class="format_text" id="comment-body-27975"><p>@Frankie</p><p>Your solution doesnt work? I get the error &#8220;unidentified index on line &#8230; &#8216;localhost&#8217;..&#8221; if I adapt the changes as you have mentioned in your post.</p><p>Anybody has another solution or am I doing something wrong?:</p><p> function GetFromAddress()<br
/> {<br
/> if(!empty($this-&gt;from_address))<br
/> {<br
/> return $this-&gt;from_address;<br
/> }</p><p> $host = $_SERVER['localhost'];</p><p> $from =&#8221;nobody@$host&#8221;;<br
/> return $from;<br
/> }</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=27975#respond' onclick='return addComment.moveForm("comment-body-27975", "27975", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment odd alt thread-even depth-1" id="comment-28093"> <span
class="avatar"><a
href="http://fashion2012-13.com" rel="nofollow"><img
alt='' src='http://0.gravatar.com/avatar/821756eebbfaffae30aebfebcc70d497?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></a></span> <span
class="comment_author"><a
href='http://fashion2012-13.com' rel='external nofollow' class='url'>2012 Fashion</a></span> <span
class="comment_time"><a
href="#comment-28093" title="Permalink to this comment" rel="nofollow">January 15, 2012 at 8:32 pm</a></span></dt><dd
class="comment odd alt thread-even depth-1"><div
class="format_text" id="comment-body-28093"><p>How can we get all this script in one page only???</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=28093#respond' onclick='return addComment.moveForm("comment-body-28093", "28093", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment even thread-odd thread-alt depth-1" id="comment-28127"> <span
class="avatar"><img
alt='' src='http://1.gravatar.com/avatar/991bae241fda75a7f275ad1cfea305ec?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">Lyle</span> <span
class="comment_time"><a
href="#comment-28127" title="Permalink to this comment" rel="nofollow">January 16, 2012 at 1:13 am</a></span></dt><dd
class="comment even thread-odd thread-alt depth-1"><div
class="format_text" id="comment-body-28127"><p>I&#8217;m having trouble adding a space between 2 variables, For instance, first name, and last name which sends both a confirmation message, and a you have completed registration email.</p><p>The variables are added to the message, but need a space between them.</p><p>What is the syntax to be added to this line of code to add a space between the firstname, and lastname<br
/> $mailer-&gt;Body =&#8221;Hello &#8220;.$user_rec['firstname'].$user_rec['lastname'].&#8221;\r\n\r\n&#8221;.</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=28127#respond' onclick='return addComment.moveForm("comment-body-28127", "28127", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment odd alt thread-even depth-1" id="comment-28128"> <span
class="avatar"><img
alt='' src='http://1.gravatar.com/avatar/991bae241fda75a7f275ad1cfea305ec?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></span> <span
class="comment_author">Lyle</span> <span
class="comment_time"><a
href="#comment-28128" title="Permalink to this comment" rel="nofollow">January 16, 2012 at 1:20 am</a></span></dt><dd
class="comment odd alt thread-even depth-1"><div
class="format_text" id="comment-body-28128"><p>In the admin notification email, I would like to have the Event (place where a subscriber filled out the form)</p><p>Currently the email sent to the admin gets a listing like this:<br
/> First Name:  firstname<br
/> Last Name:  lastname<br
/> Email:    email<br
/> Event:  Is always blank</p><p>The event appears in myphpadmin for the users table</p><p>Whats wrong with the coding in the admin emal section:<br
/> function SendAdminIntimationOnRegComplete(&amp;$user_rec)<br
/> {<br
/> if(empty($this-&gt;admin_email))<br
/> {<br
/> return false;<br
/> }<br
/> $mailer = new PHPMailer();</p><p> $mailer-&gt;CharSet = &#8216;utf-8&#8242;;</p><p> $mailer-&gt;AddAddress($this-&gt;admin_email);</p><p> $mailer-&gt;Subject = &#8220;Registration Completed: &#8220;.$user_rec['firstname'].$user_rec['lastname'];</p><p> $mailer-&gt;From = $this-&gt;GetFromAddress();</p><p> $mailer-&gt;Body =&#8221;A new user confirmed (completed) their registration at &#8220;.$this-&gt;sitename.&#8221;\r\n&#8221;.<br
/> &#8220;Event type: &#8220;.$user_rec['eventtype'].&#8221;\r\n&#8221;.<br
/> &#8220;First Name: &#8220;.$user_rec['firstname'].&#8221;\r\n&#8221;.<br
/> &#8220;Last Name: &#8220;.$user_rec['lastname'].&#8221;\r\n&#8221;.<br
/> &#8220;Email address: &#8220;.$user_rec['email'].&#8221;\r\n&#8221;;</p><p> if(!$mailer-&gt;Send())<br
/> {</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=28128#respond' onclick='return addComment.moveForm("comment-body-28128", "28128", "respond", "396")'>Reply</a></p></div></dd><dt
class="comment even thread-odd thread-alt depth-1" id="comment-28367"> <span
class="avatar"><a
href="http://Accessingthehomepageafterloggingin" rel="nofollow"><img
alt='' src='http://1.gravatar.com/avatar/36ff52f3674ec64c39549ffa4a42f837?s=44&amp;d=wavatar&amp;r=G' class='avatar avatar-44 photo' height='44' width='44' /></a></span> <span
class="comment_author"><a
href='http://Accessingthehomepageafterloggingin' rel='external nofollow' class='url'>palmspringsasian</a></span> <span
class="comment_time"><a
href="#comment-28367" title="Permalink to this comment" rel="nofollow">January 17, 2012 at 6:43 am</a></span></dt><dd
class="comment even thread-odd thread-alt depth-1"><div
class="format_text" id="comment-body-28367"><p>Hi:</p><p>I am having a hard time with registration form.<br
/> I have been testing my work by filling out a membership registration form using my own Web site.<br
/> The password I entered and the one in my database do not match.<br
/> Therefore, when I fill out the log-in form, I get an error message saying that the password in incorrect.<br
/> I would appreciate any help you are going to offer.</p><p
class="reply"><a
rel='nofollow' class='comment-reply-link' href='/php-form/php-login-form.html?replytocom=28367#respond' onclick='return addComment.moveForm("comment-body-28367", "28367", "respond", "396")'>Reply</a></p></div></dd></dl><div
id="comment_nav_2" class="prev_next"><p
class="previous"><a
href="http://www.html-form-guide.com/php-form/php-login-form.html/comment-page-3#comments" >&larr; Previous Comments</a></p></div><div
id="respond"><div
id="respond_intro"> <a
rel="nofollow" id="cancel-comment-reply-link" href="/php-form/php-login-form.html#respond" style="display:none;">Cancel reply</a><p>Leave a Comment</p></div><form
action="http://www.html-form-guide.com/wp-comments-post.php" method="post" id="commentform"><p><input
class="text_input" type="text" name="author" id="author" value="" tabindex="1" aria-required="true" /><label
for="author">Name <span
class="required" title="Required">*</span></label></p><p><input
class="text_input" type="text" name="email" id="email" value="" tabindex="2" aria-required="true" /><label
for="email">E-mail <span
class="required" title="Required">*</span></label></p><p><input
class="text_input" type="text" name="url" id="url" value="" tabindex="3" /><label
for="url">Website</label></p><p
class="comment_box"><textarea name="comment" id="comment" tabindex="4" cols="40" rows="8"></textarea></p><p
class="remove_bottom_margin"> <input
name="submit" class="form_submit" type="submit" id="submit" tabindex="5" value="Submit" /> <input
type='hidden' name='comment_post_ID' value='396' id='comment_post_ID' /> <input
type='hidden' name='comment_parent' id='comment_parent' value='0' /></p></form></div></div><div
class="prev_next post_nav"><p
class="previous">Previous post: <a
href="http://www.html-form-guide.com/php-form/php-registration-form.html" rel="prev">Creating a registration form using PHP</a></p><p>Next post: <a
href="http://www.html-form-guide.com/contact-form/embed-contact-form.html" rel="next">How to embed the contact form in your web pages</a></p></div></div><div
id="sidebars"><div
id="sidebar_1" class="sidebar"><ul
class="sidebar_list"><li
class="widget " id="sw-subscribe-widget-5"><div
id="subscribe-widget-div"><a
title=""  rel="nofallow" href="http://www.html-form-guide.com/feed"><img
width="56" height="60" src="http://www.html-form-guide.com/subscribe-widget/postsfeed.png" border="0" style="margin-right:5px;margin-left:5px;" alt="" /></a><a
title=""  rel="nofallow" href="http://www.html-form-guide.com/comments/feed"><img
width="52" height="60" src="http://www.html-form-guide.com/subscribe-widget/commentsfeed.png" border="0" style="margin-right:5px;margin-left:5px;" alt="" /></a><a
title=""  rel="nofallow" href="http://feedburner.google.com/fb/a/mailverify?uri=HtmlFormGuide&amp;loc=en_US"><img
width="58" height="60" src="http://www.html-form-guide.com/subscribe-widget/feedburner.png" border="0" style="margin-right:5px;margin-left:5px;" alt="" /></a></div></li><li
class="widget widget_categories" id="categories-3"><h3>Categories</h3><ul><li
class="cat-item cat-item-6"><a
href="http://www.html-form-guide.com/category/contact-form" title="View all posts filed under Contact Forms">Contact Forms</a></li><li
class="cat-item cat-item-4"><a
href="http://www.html-form-guide.com/category/email-form" title="View all posts filed under Email Forms">Email Forms</a></li><li
class="cat-item cat-item-5"><a
href="http://www.html-form-guide.com/category/form-mail" title="View all posts filed under Form mail scripts">Form mail scripts</a></li><li
class="cat-item cat-item-50"><a
href="http://www.html-form-guide.com/category/web-form-widget" title="View all posts filed under Form Widgets">Form Widgets</a></li><li
class="cat-item cat-item-3"><a
href="http://www.html-form-guide.com/category/html-form" title="View all posts filed under HTML Forms">HTML Forms</a></li><li
class="cat-item cat-item-70"><a
href="http://www.html-form-guide.com/category/jquery" title="View all posts filed under jQuery">jQuery</a></li><li
class="cat-item cat-item-7"><a
href="http://www.html-form-guide.com/category/php-form" title="View all posts filed under PHP Form">PHP Form</a></li><li
class="cat-item cat-item-52"><a
href="http://www.html-form-guide.com/category/web-form" title="Articles about web forms in general">Web forms</a></li></ul></li><li
class="widget widget_text" id="text-3"><h3>Simfatic Forms</h3><div
class="textwidget"><a
href='http://www.simfatic.com/forms/benefits.php'> <img
class='advimg' src="/wp-content/uploads/2011/03/make-form-without-coding.png"
height="300" width="200" border="0" alt="How to make a form without coding? Click here for a demo."></a></div></li><li
class="widget widget_recent_entries" id="recent-posts-3"><h3>Recent Posts</h3><ul><li><a
href="http://www.html-form-guide.com/jquery/drop-down-list-jquery.html" title="Loading a Drop Down List Using jQuery">Loading a Drop Down List Using jQuery</a></li><li><a
href="http://www.html-form-guide.com/html-form/html-form-generator.html" title="Simfatic Forms: HTML form generator tool">Simfatic Forms: HTML form generator tool</a></li><li><a
href="http://www.html-form-guide.com/contact-form/embed-contact-form.html" title="How to embed the contact form in your web pages">How to embed the contact form in your web pages</a></li><li><a
href="http://www.html-form-guide.com/php-form/php-login-form.html" title="Making a login form using PHP">Making a login form using PHP</a></li><li><a
href="http://www.html-form-guide.com/php-form/php-registration-form.html" title="Creating a registration form using PHP">Creating a registration form using PHP</a></li></ul></li><li
class="widget widget_nrc" id="related-links-by-category"><h3>PHP Form</h3><ul><li
class="cat-item" id="related-cat-post-387"><a
href="http://www.html-form-guide.com/php-form/php-registration-form.html" title="Creating a registration form using PHP">Creating a registration form using PHP</a></li><li
class="cat-item" id="related-cat-post-410"><a
href="http://www.html-form-guide.com/php-form/php-form-variables.html" title="Passing PHP form variables from one page to other">Passing PHP form variables from one page to other</a></li><li
class="cat-item" id="related-cat-post-402"><a
href="http://www.html-form-guide.com/php-form/php-order-form.html" title="Creating a multi-page order form using PHP">Creating a multi-page order form using PHP</a></li><li
class="cat-item" id="related-cat-post-381"><a
href="http://www.html-form-guide.com/php-form/php-form-submit.html" title="How to submit a form using PHP">How to submit a form using PHP</a></li><li
class="cat-item" style="text-align:right"><a
href="http://www.html-form-guide.com/category/php-form" title="PHP Form">More >> &nbsp; </a></li></ul></li></ul></div></div></div><div
id="footer"><p>Copyright &copy; 2011 <a
href="http://www.html-form-guide.com">HTML Form Guide</a>. All rights reserved.</p><br/>
 <script type="text/javascript">hs.graphicsDir = '/wp-content/plugins/highslide-4-wordpress-reloaded/graphics/';
hs.showCredits = false;
hs.fadeInOut = false;
hs.align = 'center';
hs.padToMinWidth = true;
hs.outlineType = 'rounded-white';</script><p align='center'><small>Page optimized by <a href='http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/' title='WP Minify WordPress Plugin' style='text-decoration:none;'>WP Minify</a> <a href='http://omninoggin.com/' title='WordPress Plugin' style='text-decoration:none;'>WordPress Plugin</a></small></p><script type='text/javascript' src='http://www.html-form-guide.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shCore.js?ver=2.1.364b'></script>
<script type='text/javascript' src='http://www.html-form-guide.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushXml.js?ver=2.1.364b'></script>
<script type='text/javascript' src='http://www.html-form-guide.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/shBrushPhp.js?ver=2.1.364b'></script>
<script type='text/javascript'>
	(function(){
		var corecss = document.createElement('link');
		var themecss = document.createElement('link');
		var corecssurl = "http://www.html-form-guide.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shCore.css?ver=2.1.364b";
		if ( corecss.setAttribute ) {
				corecss.setAttribute( "rel", "stylesheet" );
				corecss.setAttribute( "type", "text/css" );
				corecss.setAttribute( "href", corecssurl );
		} else {
				corecss.rel = "stylesheet";
				corecss.href = corecssurl;
		}
		document.getElementsByTagName("head")[0].appendChild(corecss);
		var themecssurl = "http://www.html-form-guide.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shThemeEclipse.css?ver=2.1.364b";
		if ( themecss.setAttribute ) {
				themecss.setAttribute( "rel", "stylesheet" );
				themecss.setAttribute( "type", "text/css" );
				themecss.setAttribute( "href", themecssurl );
		} else {
				themecss.rel = "stylesheet";
				themecss.href = themecssurl;
		}
		document.getElementsByTagName("head")[0].appendChild(themecss);
	})();
	SyntaxHighlighter.config.clipboardSwf = 'http://www.html-form-guide.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf';
	SyntaxHighlighter.config.strings.expandSource = 'show source';
	SyntaxHighlighter.config.strings.viewSource = 'view source';
	SyntaxHighlighter.config.strings.copyToClipboard = 'copy to clipboard';
	SyntaxHighlighter.config.strings.copyToClipboardConfirmation = 'The code is in your clipboard now';
	SyntaxHighlighter.config.strings.print = 'print';
	SyntaxHighlighter.config.strings.help = '?';
	SyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n';
	SyntaxHighlighter.config.strings.noBrush = 'Can\'t find brush for: ';
	SyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn\'t configured for html-script option: ';
	SyntaxHighlighter.defaults['auto-links'] = false;
	SyntaxHighlighter.defaults['class-name'] = 'formcode';
	SyntaxHighlighter.defaults['gutter'] = false;
	SyntaxHighlighter.defaults['toolbar'] = false;
	SyntaxHighlighter.all();
</script>
	</div>
</div>
</div>
<!--[if lte IE 8]>
<div id="ie_clear"></div>
<![endif]-->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-4502881-3");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
<!-- Dynamic page generated in 0.378 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-01-18 12:15:43 -->
<!-- Compression = gzip -->